import { getRequest, postRequest, putRequest, deleteRequest } from '@/utils/request';
/**
 *  * 生产领料
 * */
// 创建
export const productionMaterialCreate = (data) => postRequest('/production/material/create', data);

// 更新
export const productionMaterialUpdate = (data) => putRequest('/production/material/update', data);

// 删除
export const productionMaterialDelete = (params) => deleteRequest('/production/material/delete', params);

// 获得
export const productionMaterialGet = (params) => getRequest('/production/material/get', params);

// 获得分页
export const productionMaterialPage = (params) => getRequest('/production/material/page', params);

// 下达与撤回
export const productionMaterialRelease = (params) => postRequest('/production/material/release', params);
export const productionMaterialClearRelease = (params) => postRequest('/production/material/clear-release', params);
// 更新状态
export const productionMaterialUpdateAuditState = (params) => postRequest('/production/material/update-audit-state', params);
